//
//  DrawFootView.m
//  NewMusic
//
//  Created by dllo on 15/11/21.
//  Copyright © 2015年 Going. All rights reserved.
//

#import "DrawFootView.h"

@implementation DrawFootView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatSubView];
    }
    return self;
}
- (void)creatSubView
{
    UIView *view = [[UIView alloc] initWithFrame:self.frame];
    view.backgroundColor = [UIColor whiteColor];
    view.alpha = 0.05;
    [self addSubview:view];
    [view release];
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(30, 0, 190, 60);
    [button setTitle:@"退出登录" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor colorWithRed:169 / 255.0 green:58 / 255.0 blue:59 / 255.0 alpha:1.0] forState:UIControlStateNormal];
    [button addTarget:self action:@selector(buttonAction) forControlEvents:UIControlEventTouchUpInside];
    button.layer.cornerRadius = 6;
    [self addSubview:button];
}
- (void)buttonAction
{
    
}

@end
